package bomberman.runable;

import bomberman.model.Boom;
import bomberman.util.Constants;

/**
 * 爆炸效果线程，控制爆炸效果自动消失
 * @author EX-FUHUICHAO001
 * 2016年9月26日14:16:17
 */
public class MyRunableBoom implements Runnable {

	private Boom boom;
	
	public MyRunableBoom(Boom boom){
		this.boom = boom;
	}
	
	public void run() {
		try {
			Thread.sleep(Constants.BOOM_SLEEP_TIME);
			boom.remove();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	
	
	public Boom getBoom() {
		return boom;
	}

	public void setBoom(Boom boom) {
		this.boom = boom;
	}

}
